package com.hc.demo.controller;

import com.hc.demo.dto.ResultResponse;
import com.hc.demo.service.OverallResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OverallResultController {
    @Autowired
    OverallResultService overallResultService;

    @RequestMapping("/overallResult/{orderId}")
    public ResultResponse getOverallResultByOrderId(@PathVariable("orderId") Integer orderId){

        System.out.println("orderId"+orderId);

        return overallResultService.getOverallResultByOrderId(orderId);


    }
}
